package reso.examples.gobackn.gui;

import java.awt.BorderLayout;

import javax.swing.JFrame;

public class PlotGui extends JFrame {

	private static final long serialVersionUID = 1L;

	private PlotGui(){
		this.setTitle("Plot Gui");
		GuiJfreeChartModel guiJfreeChartModel=new GuiJfreeChartModel();
		GuiView view=new GuiView(guiJfreeChartModel);
		
		GuiControler controler=new GuiControler(guiJfreeChartModel);
		
		this.add(controler,BorderLayout.NORTH);
		this.add(view);
	}
	
	public static void main(String[] args) {
		PlotGui gui=new PlotGui();
		
		gui.setDefaultCloseOperation(EXIT_ON_CLOSE);
		gui.setSize(500, 500);
		gui.setVisible(true);
		
	}
}
